package com.legna.mhxy.support.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
@TableName("t_ring_task_log")
public class RingTaskLog {

    @TableId
    private Long id;

    /**
     * 环任务id
     */
    private Long taskId;

    /**
     * 用户环库存id
     */
    private Long userRingId;

    /**
     * 消耗方式 1、库存 2、购买
     */
    private Integer type;

    public RingTaskLog() {}

    public RingTaskLog(Long taskId, Long userRingId,Integer type) {
        this.taskId = taskId;
        this.userRingId = userRingId;
        this.type = type;
    }
}
